import axios from 'axios'
import { setupInterceptor } from './AjaxInterceptors'

const axiosInstance = axios.create({
  timeout: 20000,
  withCredentials: true,
})

// 添加请求拦截器
setupInterceptor(axiosInstance)

export { axiosInstance }
